﻿@model List<LeEdu.MODEL.Order>
@{
    ViewBag.Title = "CourseOrder";
    Layout = null;
}

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="b5390748ba80a545b84ee03c29bb172ec130b183" name="csrf-token" />
    <title>在线教育后台课程订单</title>





    @*<link href="~/Content/css/bootstrap.css?6.9.6" rel="stylesheet" />*@

    <link href="~/Content/css/admin_v2.css?6.9.6" rel="stylesheet" />
    <link rel="stylesheet" media="screen" href="~/Content/css/es-icon.css?6.9.6" />

    <!--[if lt IE 9]>
      <script src="js/html5shiv.js?6.9.6"></script>
      <script src="js/respond.min.js?6.9.6"></script>
    <![endif]-->
</head>
<!-- 网页头部分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_Header.cshtml")

<!-- 网页导航菜单分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-2">
                <div class="list-group">
                    <a class="list-group-item" href="/Order/CourseOrder">课程订单</a>
                    <a class="list-group-item" href="/Order/ClassOrder">班级订单</a>
                    <a class="list-group-item active" href="/Order/VirtualOrder">虚拟币订单</a>
                </div>
            </div>
            <div class="col-md-10">
                <div class="page-header clearfix">
                    <h1 class="pull-left">课程订单</h1>
                    <div class="pull-right">
                    </div>
                </div>
                <form id="user-search-form" class="form-inline well well-sm" action="/Order/VirtualOrder" method="get" novalidate>

                    <div class="mbm">
                        @*<div class="form-inline" style="display:none;">
                    <input class="form-control" type="text" name="paidTimeRange" , placeholder="付款时间段">
                </div>*@
                        <div class="form-inline">

                            <input class="form-control" type="text" name="keyword" value="@ViewBag.guan" placeholder="关键词">
                            <button type="submit" class="btn btn-primary">搜索</button>
                        </div>

                        @*<a class="btn btn-primary" href="/admin/order/manage/export/classroom">导出结果</a>*@
                    </div>
                </form>
                <table class="table table-striped table-hover" id="order-table">

                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>创建时间</th>
                            <th>状态</th>
                            <th>实付(元)</th>
                            <th>购买者</th>
                            <th>支付方式</th>
                            <th style="min-width:100px">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr id="order-table-10" style="word-break: break-all;word-wrap: break-word;">
                                <td>
                                    <a href="#"><strong>@item.Oname</strong></a>
                                    <br>
                                    <span class="text-muted text-sm">订单号：@item.Onum</span>
                                </td>
                                <td><span class="text-muted text-sm">@item.OcreateDate</span></td>
                                <td><span class="label label-success">@item.OtradeState</span></td>
                                <td><span class="money-text">@item.Oprice</span></td>
                                <td>
                                    <a class="link-light " href="/user/4">Admin</a>

                                </td>
                                <td>
                                    支付宝
                                    <br>
                                    <span class="text-muted text-sm">@item.OpayDate</span>
                                </td>
                                <td>
                                    <a href="/Order/CourseOrderXQ/@item.OID" class="btn btn-sm btn-default" data-toggle="modal" data-target="#exampleModaDD">详情</a>
                                </td>
                            </tr>
                        }

                    </tbody>
                </table>
                <div class="paginator">

                </div>
                <div class="row">
                    <div class="col-md-12">
                        <nav class="text-center">
                            <ul class="pagination">
                                @if (Convert.ToInt32(ViewBag.pageindex) <= 1)
                                {
                                    <li>

                                        <span aria-hidden="true">上一页</span>

                                    </li>
                                }
                                else
                                {
                                    <li>
                                        <a href="/Order/VirtualOrder/@(Convert.ToInt32(ViewBag.pageindex)-1)" aria-label="Previous">
                                            <span aria-hidden="true">上一页</span>
                                        </a>
                                    </li>
                                }
                                @for (int i = 1; i <= Convert.ToInt32(ViewBag.pagecount); i++)
                                {

                                    if (Convert.ToInt32(ViewBag.pageindex) == Convert.ToInt32(i))
                                    {
                                        <li><span>@i</span> </li>
                                    }
                                    else
                                    {
                                        <li><a href="/Order/VirtualOrder/@i">@i</a></li>
                                    }


                                }

                                @if (Convert.ToInt32(ViewBag.pageindex) >= Convert.ToInt32(ViewBag.pagecount))
                                {
                                    <li>

                                        <span aria-hidden="true">下一页</span>

                                    </li>
                                }
                                else
                                {
                                    <li>
                                        <a href="/Order/VirtualOrder/@Convert.ToInt32(ViewBag.pagecount)" aria-label="Next">
                                            <span aria-hidden="true">下一页</span>
                                        </a>
                                    </li>
                                }

                            </ul>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>

    @*查看课程订单信息模态框*@
    <div class="modal fade" id="exampleModaDD" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
            </div><!-- /.modal-content -->
        </div>
    </div>
    @*清除每次查看课程订单信息模态框的查询结果*@
    <script>
            $("#exampleModaDD").on("hidden.bs.modal", function () {
                $(this).removeData("bs.modal");
            })
    </script>


    <script>
            var app = {};
            app.debug = false;
            app.version = '6.9.6';
            app.httpHost = 'http://www.zhishile.com';
            app.basePath = '';
            app.theme = 'jianmo';
            app.themeGlobalScript = 'theme/global-script';
            app.jsPaths = { "common": "common", "theme": "\/themes\/jianmo\/js", "customwebbundle": "\/bundles\/customweb\/js", "customadminbundle": "\/bundles\/customadmin\/js", "topxiawebbundle": "\/bundles\/topxiaweb\/js", "topxiaadminbundle": "\/bundles\/topxiaadmin\/js", "classroombundle": "\/bundles\/classroom\/js" };
            app.crontab = '/common/crontab';

            var CKEDITOR_BASEPATH = app.basePath + '/assets/libs/ckeditor/4.6.7/';
            app.config = { "api": { "weibo": { "key": "" }, "qq": { "key": "" }, "douban": { "key": "" }, "renren": { "key": "" } }, "cloud": { "video_player": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/GrindPlayer.swf", "video_player_watermark_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Watermake-1.0.3.swf", "video_player_fingerprint_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Fingerprint-1.0.1.swf" }, "loading_img_path": "\/assets\/img\/default\/loading.gif?6.9.6" };
            app.arguments = {};
            app.controller = 'manage/list';

            app.scripts = null;

            app.uploadUrl = '/file/upload';
            app.imgCropUrl = '/file/img/crop';
            app.lessonCopyEnabled = '0';
            app.mainScript = '/bundles/topxiaadmin/js/admin-app.js?6.9.6';
    </script>
    <script src="~/Content/js/sea.js"></script>

    <script src="~/Content/js/seajs-style.js?6.9.6"></script>
    <script src="~/Content/js/seajs-global-config.js?6.9.6"></script>
    <script>
            seajs.use(app.mainScript);
    </script>  <div id="modal" class="modal"></div>

</body>
</html>
